package main

import "fmt"

type Ints []int

func (i Ints) sum() (s int) {
	for _, v := range i {
		s += v
	}
	return
}

func main() {
	fmt.Println(Ints{1, 3, 5, 7}.sum())
}
